package com.appcheck.recording.action.impl;

import org.json.JSONException;
import org.json.JSONObject;

import com.appcheck.recording.action.AbstractAction;
import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.handler.AbstractActionHandler;
import com.appcheck.recording.plugin.AbstractActionConverter;

public class ScrollStateChangedAction implements AbstractAction, ActionConvert {

	private int scrollState;
	
	public final String toString(){
	    JSONObject localJSONObject = new JSONObject();
	    try{
	      localJSONObject.put("class", "ScrollStateChangedAction");
	      localJSONObject.put("scrollState", this.scrollState);
	    }
	    catch (JSONException localJSONException) {}
	    return localJSONObject.toString();
	}
	
	
	public final int getScrollState() {
		return scrollState;
	}


	public final void setScrollState(int scrollState) {
		this.scrollState = scrollState;
	}


	@Override
	public boolean handle(AbstractActionHandler param) {
		return param.visit(this);
	}


	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {

	}

}
